.rmc-read-aloud {
	margin: 0.85rem 0 1rem;
	padding: 0.65rem 0.8rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.rmc-read-aloud__header {
	display: block;
	margin-bottom: 0.45rem;
	text-align: center;
}

.rmc-read-aloud__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
}

.rmc-read-aloud__status,
.rmc-read-aloud__fallback {
	margin: 0.45rem 0 0;
	font-size: 0.78rem;
	color: #555;
	line-height: 1.35;
	text-align: center;
}

.rmc-read-aloud__controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.45rem;
	align-items: center;
}

.rmc-read-aloud__button,
.rmc-read-aloud__speed select {
	min-height: 32px;
	border: 1px solid rgba(0, 0, 0, 0.16);
	border-radius: 999px;
	background: #fff;
	padding: 0.4rem 0.72rem;
	font: inherit;
	font-size: 0.86rem;
	line-height: 1;
}

.rmc-read-aloud__button {
	font-weight: 600;
}

.rmc-read-aloud__button:hover,
.rmc-read-aloud__speed select:hover {
	border-color: rgba(0, 0, 0, 0.28);
}

.rmc-read-aloud__button:focus-visible,
.rmc-read-aloud__speed select:focus-visible {
	outline: 3px solid rgba(0, 102, 204, 0.18);
	outline-offset: 2px;
}

.rmc-read-aloud__button[disabled],
.rmc-read-aloud__speed select[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.rmc-read-aloud__button.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}

.rmc-read-aloud__speed {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.84rem;
	font-weight: 600;
}

.rmc-read-aloud__progress {
	display: flex !important;
	align-items: center !important;
	justify-content: center;
	gap: 0.65rem;
	width: 100%;
	max-width: 420px;
	margin: 0.6rem auto 0;
}

.rmc-read-aloud__time {
	display: inline-block;
	min-width: 42px;
	font-size: 0.76rem;
	line-height: 1;
	color: #666;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-align: center;
}

.rmc-read-aloud__progress-slider,
.rmc-read-aloud input[type="range"].rmc-read-aloud__progress-slider {
	-webkit-appearance: none !important;
	appearance: none !important;
	accent-color: transparent !important;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	color: inherit;
	--rmc-slider-progress: 0%;
}

.rmc-read-aloud__progress-slider:focus,
.rmc-read-aloud input[type="range"].rmc-read-aloud__progress-slider:focus {
	outline: none;
}

.rmc-read-aloud__progress-slider::-webkit-slider-runnable-track,
.rmc-read-aloud input[type="range"].rmc-read-aloud__progress-slider::-webkit-slider-runnable-track {
	-webkit-appearance: none !important;
	height: 4px;
	border: 0 !important;
	border-radius: 999px;
	background: linear-gradient(90deg, #111 0%, #111 var(--rmc-slider-progress), #cfd4da var(--rmc-slider-progress), #cfd4da 100%) !important;
	box-shadow: none !important;
}

.rmc-read-aloud__progress-slider::-webkit-slider-thumb,
.rmc-read-aloud input[type="range"].rmc-read-aloud__progress-slider::-webkit-slider-thumb {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 14px;
	height: 14px;
	margin-top: -5px;
	border: 0 !important;
	border-radius: 50%;
	background: #111 !important;
	box-shadow: 0 0 0 2px #fff !important;
}

.rmc-read-aloud__progress-slider::-moz-range-track,
.rmc-read-aloud input[type="range"].rmc-read-aloud__progress-slider::-moz-range-track {
	height: 4px;
	border: 0 !important;
	border-radius: 999px;
	background: #cfd4da !important;
	box-shadow: none !important;
}

.rmc-read-aloud__progress-slider::-moz-range-progress,
.rmc-read-aloud input[type="range"].rmc-read-aloud__progress-slider::-moz-range-progress {
	height: 4px;
	border: 0 !important;
	border-radius: 999px;
	background: #111 !important;
}

.rmc-read-aloud__progress-slider::-moz-range-thumb,
.rmc-read-aloud input[type="range"].rmc-read-aloud__progress-slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 0 !important;
	border-radius: 50%;
	background: #111 !important;
	box-shadow: 0 0 0 2px #fff !important;
}

.rmc-read-aloud__progress-slider::-ms-track,
.rmc-read-aloud input[type="range"].rmc-read-aloud__progress-slider::-ms-track {
	width: 100%;
	height: 4px;
	border: 0;
	color: transparent;
	background: transparent;
}

@media (max-width: 767px) {
	.rmc-read-aloud {
		padding: 0.65rem 0.7rem 0.75rem;
	}

	.rmc-read-aloud__controls {
		align-items: stretch;
	}

	.rmc-read-aloud__button,
	.rmc-read-aloud__speed,
	.rmc-read-aloud__speed select {
		width: 100%;
	}

	.rmc-read-aloud__speed {
		flex-direction: column;
		align-items: stretch;
	}

	.rmc-read-aloud__progress {
		max-width: 100%;
		gap: 0.45rem;
	}

	.rmc-read-aloud__time {
		min-width: 40px;
		font-size: 0.72rem;
	}
}
